<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>user</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}"></link>
</head>
<body class="container">
<br/>
<h1>登录</h1>
<br/><br/>
<div class="with:60%">
    <div style="margin: 10px 90px;">没有账户？先去<a   th:href="@{/toRegister}">注册</a></div>

    <form class="form-horizontal" th:action="@{/login}" method="post">
        <div class="form-group">
            <label for="loginName" class="col-sm-2 control-label">Login Name</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" name="loginName" id="loginName" placeholder="enter userName or email"/>
            </div>
        </div>
        <div class="form-group">
            <label for="passWord" class="col-sm-2 control-label">PassWord</label>
            <div class="col-sm-6">
                <input type="password" class="form-control" name="passWord" id="passWord" placeholder="enter passWord"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-6">
                <div th:if="${errorMsg != null}" class="alert alert-danger" role="alert" th:text="${errorMsg}"></div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-6">
                <input type="submit" value="Submit" class="btn btn-info"/>
            </div>
        </div>
    </form>
</div>
</body>
</html>